package com.naiterui.ehp.bs.search.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.naiterui.ehp.bp.bo.agent.AgentCustomBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;

/**
 * 经纪人服务
 * 
 * @author yangfuya
 * @since 2022/2/16
 */
@FeignClient(name = "agent", url = "${ehp.domain.agent}", configuration = FeignConfiguration.class)
public interface IAgentFeignClient {

    /**
     * 根据医生id获取所属信息
     */
    @GetMapping("inner/custom/getAgentCustom")
    AgentCustomBO getAgentCustomByDoctorId(@RequestParam("doctorId") Long doctorId);

}
